package com.bwie.sms.producer;

import com.bwie.common.domain.Shopping;
import com.bwie.common.result.Result;
import com.bwie.sms.config.RabbitMQConfig;
import com.bwie.sms.feign.GoodsFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MqProducer {

    @Autowired
    private RabbitMQConfig rabbitMQConfig;

    @Autowired
    private GoodsFeign goodsFeign;



//    @Scheduled(cron = "0 0/15 * * * ?")
//    public void MqShop() {
//        Result<List<Shopping>> byId = goodsFeign.findById();
//        List<Shopping> data = byId.getData();
//        rabbitMQConfig.confirm(RabbitMQConfig.EXCHANGE,RabbitMQConfig.QUEUE,data);
//    }


}
